function q_exit=def_is_gameover(G)
% def_is_gameover: Default routine to test whether the game is over
%
% SYNTAX:
%   ret = def_is_gameover(G)
%   Return 1 if game should be over or 0 if otherwise.
%   This routine tests whether G.t>G.max_time 
%   or G.step>G.max_step or G.r<G.min_r.

%   Author: Hongbin Ma
%   Last updated: 2009-6-1 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com
q_exit=(G.t>G.max_time | G.step>G.max_step | G.r<G.min_r);
